<h1>{$smarty.get.type|capitalize} Management</h1>
<table border="0" width="100%" cellspacing="5">
  <tr><td>Click on a title to edit an item or click <a href="index.php?mod=admin&amp;action=content&amp;type={$smarty.get.type}">here</a> to add a new item.</td></tr>
</table>
<table width="100%" border="0">
<tr><td width="300"><b>Title</b></a></td><td><b>Date</b></td><td>&nbsp;</td></tr>
{foreach from=$data item=v}
<tr><td><a href="index.php?mod=admin&amp;action=content&amp;type={$smarty.get.type}&amp;id={$v.id}">{$v.title}</a></td>
<td>{$v.pubdate}</td>
<td><a href="index.php?mod=admin&amp;action=delete&amp;type={$smarty.get.type}&amp;id={$v.id}" onclick="return confirm('Really delete?');"><img src="./images/trash.gif" alt="Delete" /></a></td></tr>
{/foreach}
</table>